package com.ruoyi.StarStudio.Controller;

import com.ruoyi.StarStudio.Entity.Goods;
import com.ruoyi.StarStudio.Service.GoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/test")
public class test {

    @Autowired
    GoodsService goodsService;

    @GetMapping
    //@ResponseBody
    public void Test(){
        Goods byGoods_id = goodsService.findByGoods_id(27);
        System.out.println(byGoods_id);
    }

}
